{% extends "common/layout.html" %}
{% block content %}
    <div class="row bg-primary">
        <div class="col-sm-12">
            <h2>移动办公平台数据管理系统</h2>
            <h6>Mobile office platform data management system</h6>
        </div>
    </div>

    <div class="modal-dialog" role="document" style="width:100%;height: 100%">
        <div class="panel panel-primary ">
            <div class="panel-heading">富文本编辑器</div>
            {#标题#}
            <div class="panel-body">
                {#表单#}
                <form class="form-horizontal form" style="margin-top: 10px" method="post"
                      action="{{ buildUrl('/document/post') }}">
                    <div class="input-group">
                         <span class="input-group-addon" id="basic-addon1">一级分类</span>
                          <select class="form-control  col-sm-2" name="type">
                            <option>IT类</option>
                            <option>行政类</option>
                            <option>人事类</option>
                            <option>首页新闻</option>
                        </select>
                          <span class="input-group-addon" id="basic-addon1">二级分类</span>
                         <input type="text" class="form-control" placeholder="请输入" aria-describedby="basic-addon1"
                               name="classone">
                             <span class="input-group-addon" id="basic-addon1">头图地址</span>
                         <input type="text" class="form-control" placeholder="请输入" aria-describedby="basic-addon1"
                               name="image">
                         <span class="input-group-addon" id="basic-addon1">文章标题</span>
                        <input type="text" class="form-control" placeholder="请输入" aria-describedby="basic-addon1"
                               name="title">
                        <span class="input-group-btn">
                          <button class="btn btn-default" type="submit" value="Submit">发表文章</button>
                              </span>



                    </div>
                    <textarea id="tinydemo2" name="content" placeholder="请输入内容.."></textarea>
                </form>
            </div>
        </div>
    </div>




{% endblock %}


{% block js %}
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap-datetimepicker/4.17.47/js/bootstrap-datetimepicker.min.js"></script>
    <script src="{{ buildStaticUrl('/js/tinymce/tinymce.min.js') }}"></script>
    <script src="{{ buildStaticUrl('/js/document.js') }}"></script>


{% endblock %}